package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxp
 * @since 2025-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("good_order")
@ApiModel(value="GoodOrder对象", description="")
public class GoodOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("order_no")
    private String orderNo; // 订单编号

    @TableField("order_name")
    private String orderName; // 订单名称

    @TableField("user_id")
    private Integer userId; // 用户ID

    @TableField("room_id")
    private Integer roomId; // 房间ID

    @TableField("hotel_id")
    private Long hotelId; // 酒店ID

    @TableField("price")
    private BigDecimal price; // 订单价格

    @TableField("status")
    private Integer status; // 订单状态: 0-待支付,1-已支付,2-已取消,3-已完成

    @TableField("check_in_date")
    private Date checkInDate; // 入住日期

    @TableField("check_out_date")
    private Date checkOutDate; // 退房日期

    @TableField("create_time")
    private Date createTime; // 创建时间

    @TableField("update_time")
    private Date updateTime; // 更新时间

    @TableField("is_deleted")
    @TableLogic
    private Byte isDeleted; // 逻辑删除

}
